package com.hunting.agl.register;



import java.util.List;

import util.dao.HibernateDaoImpl;

public class RegisterDaoImpl extends HibernateDaoImpl<Register,Long> 
	implements RegisterDao{
	
	@Override
	@SuppressWarnings("unchecked")
	public List<Register> findByUPA(String userName, String passWord, Long authority_id) {
		List<Register> list=this.getHibernateTemplate().find(" from "+Register.class.getName()+" where userName='"+userName+
				"' and passWord='"+passWord+"' and authority_id="+authority_id);
		return list;
	}
}
